package com.example.dynamicschedule.dao;

import com.example.dynamicschedule.bean.CkCreditAccountInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Repository
public interface CkCreditAccountInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CkCreditAccountInfo record);

    int insertSelective(CkCreditAccountInfo record);

    CkCreditAccountInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CkCreditAccountInfo record);

    int updateByPrimaryKey(CkCreditAccountInfo record);

    void insertForEach(List<CkCreditAccountInfo> ckCreditAccountInfos);

    List<CkCreditAccountInfo> selectByidentificationNumbers(Map<String, Object> params);

    List<String> selectByLikeBatchNumberAndAllowType(Map<String, Object> params);

    List<String> selectByLikeBatchNumberAndAllowTypeAndNorm(Map<String, Object> params);

    void updateByCardNumberForEach(List<CkCreditAccountInfo> ckCreditAccountInfos);
}